import request from '@/utils/request'

// 查询申请额度记录列表
export function listEdu(query,mark) {
  return request({
    url: '/biz/edu/list/' + mark,
    method: 'get',
    params: query
  })
}

// 查询申请额度记录详细
export function getEdu(id) {
  return request({
    url: '/biz/edu/' + id,
    method: 'get'
  })
}

// 新增申请额度记录
export function addEdu(data) {
  return request({
    url: '/biz/edu',
    method: 'post',
    data: data
  })
}

// 修改申请额度记录
export function updateEdu(data) {
  return request({
    url: '/biz/edu',
    method: 'put',
    data: data
  })
}

// 删除申请额度记录
export function delEdu(id) {
  return request({
    url: '/biz/edu/' + id,
    method: 'delete'
  })
}

// 导出申请额度记录
export function exportEdu(query) {
  return request({
    url: '/biz/edu/export',
    method: 'get',
    params: query
  })
}


export function getedutime(uid) {
  return request({
    url: '/web/getEduTime/' + uid,
    method: 'get'
  })
}